import request from '@/utils/request'
import { ApiModulesRoutes } from '@/consts.js'

/**
 *  获取车辆统计
 */
export function getCarStatistics(data) {
  return request({
    url: `${ApiModulesRoutes.USER}/dashboard/findRecordsCarStatistics`,
    method: 'GET',
    params: data,
  })
}

/**
 *  获取资产统计
 */

export function getAssetsStatistics(data) {
  return request({
    url: `${ApiModulesRoutes.USER}/dashboard/findRecordsAssetStatistics`,
    method: 'GET',
    params: data,
  })
}
/**
 *  获取资产统计
 */

export function getProductStatistics(data) {
  return request({
    url: `${ApiModulesRoutes.USER}/dashboard/findProductStatistics`,
    method: 'GET',
    params: data,
  })
}
